#ifndef GUYDEATH_H
#define GUYDEATH_H

#include <QFileInfo>
#include <QMainWindow>
#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QMap>
#include <QPainter>
#include <QList>
#include <QPointF>
#include <QPixmap>

class GuyDeath : public QGraphicsItem
{
public:
    GuyDeath(QGraphicsScene *scene);
    virtual QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
    void updateDeathAnimation();

private:
    QString root;
    QList<QPixmap> deathlist;
    QList<QPixmap> deathbloodlist;
    int i;

};

#endif // GUYDEATH_H
